Trigger repricing for a single product and send to all pricing routes (same as CLI command). Supports both GET and POST methods.
HTTP: POST | GET /products/{productId}/reprice
| Name | Type | Required | Description | Example |
|---|---|---|---|---|
| productId | integer | yes | Product ID to reprice. | 24 |
| Name | Type | Required | Description | Example |
|---|---|---|---|---|
| domain | string | yes | Domain name as configured in DynPricing. | profi-parfemy.cz |
| force | boolean | no | Force cache refresh before repricing (default: false). | true |
| strategy_id | integer | no | Optional specific strategy ID to use. | 1 |
curl -X POST https://admin.elpricing.com/api/products/{productId}/reprice
-H "Authorization: ApiKey YOUR_API_KEY"
-H "Content-Type: application/json"
-d '{"domain":"profi-parfemy.cz","force":true}'Tasks are persisted to var/api_queue/tasks.json. Process them with:
php go.php cron:list\nphp go.php cron:go
Logs are written to var/api_queue/logs/{task_id}.log.